CFILE := $(wildcard *.c)
C_UTIL_F := $(filter util%.c,%(CFILE))
THREAD_O_FILE := $(patsubst %.c,%.o,$(filter thread%.c,$(CFILE)))

all: thread

thread: thread_pool_example.out

thread_pool_example.out: $(THREAD_O_FILE)
	gcc $^ -o $@



%.o: %.c
	gcc -c $^ -o $@
c: clean
clean: 
	rm *.o -f
	rm *.out -f